#!/bin/bash

# Convert PNG to ICO
# This script converts the logo.png file to favicon.ico format

echo "Converting PNG to ICO..."

# Check if magick tool is available
if ! command -v magick &> /dev/null; then
  echo "Error: magick tool is not installed. Please install ImageMagick."
  exit 1
fi

# Convert logo.png to favicon.ico
magick ./public/logo.png -define icon:auto-resize=16,32,48,64 ./public/favicon.ico

echo "Conversion completed: favicon.ico created in public directory."